<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2015/6/25
 * Time: 16:23
 */

/**
 * 支持多语言
 * @return string
 */
function L()
{
    $args = func_get_args();
    $string = "";
    foreach ($args as $arg) {
        $string .= \LibLanguage::get($arg);
    }
    return $string;
}

/**
 * 写内容至基础日志文件
 * @param $content
 * @param string $file
 */
function w($content, $file = "")
{
    if ($file) {
        file_put_contents(SYS_LOG . $file, date("Y-m-d H:i:s", time()) . "\t" . $content . "\r\n", FILE_APPEND);
    } else {
        \LibLog::custom($content);
    }
}